package it.fantacalcio.hibernate.dao;

import it.fantacalcio.model.User;

import java.util.List;

public interface UserDAO {
	
	public void save(User user) throws Exception;
	public void delete(User user) throws Exception;
	public void update(User user) throws Exception;
	public User get(Long id) throws Exception;
	public List<User> list() throws Exception;
	public List<User> listaAttivi() throws Exception;
	public List<User> findByExample(User user) throws Exception;
	public User findByUsernameAndPassword(String username, String password) throws Exception;
	public List<User> listaPresidenti() throws Exception;
	
}
